import dva from 'dva';
import createLoading from 'dva-loading';

const runtimeDva = window.g_plugins.mergeConfig('dva');
let app = dva({
  history: window.g_history,
  
  ...(runtimeDva.config || {}),
});

window.g_app = app;
app.use(createLoading());
(runtimeDva.plugins || []).forEach(plugin => {
  app.use(plugin);
});

app.model({ namespace: 'index', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/models/index.js').default) });
app.model({ namespace: 'model', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/redPkgRecord/model.js').default) });
app.model({ namespace: 'myLarn', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/layout/myLarn/models/myLarn.js').default) });
app.model({ namespace: 'activity', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/layout/activity/models/activity.js').default) });
app.model({ namespace: 'factoryVedio', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/layout/factoryVedio/models/factoryVedio.js').default) });
app.model({ namespace: 'gardenVedio', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/layout/gardenVedio/models/gardenVedio.js').default) });
app.model({ namespace: 'inviteQCode', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/layout/inviteQCode/models/inviteQCode.js').default) });
app.model({ namespace: 'message', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/layout/message/models/message.js').default) });
app.model({ namespace: 'cmsDetail', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/layout/cmsDetail/models/cmsDetail.js').default) });
app.model({ namespace: 'myGarden', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/layout/myGarden/models/myGarden.js').default) });
app.model({ namespace: 'pastureVedio', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/layout/pastureVedio/models/pastureVedio.js').default) });
app.model({ namespace: 'periodList', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/layout/periodList/models/periodList.js').default) });
app.model({ namespace: 'cms', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/layout/cms/models/cms.js').default) });
app.model({ namespace: 'buy', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/layout/buy/models/buy.js').default) });
app.model({ namespace: 'model', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/layout/bankCardList/model.js').default) });
app.model({ namespace: 'myActivity', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/layout/myActivity/models/myActivity.js').default) });
app.model({ namespace: 'model', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/login/model.js').default) });
app.model({ namespace: 'main', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/main/models/main.js').default) });
app.model({ namespace: 'more', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/more/models/more.js').default) });
app.model({ namespace: 'pasture', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/pasture/models/pasture.js').default) });
app.model({ namespace: 'model', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/redPkgList/model.js').default) });
app.model({ namespace: 'wallet', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/wallet/models/wallet.js').default) });
app.model({ namespace: 'model', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/yangji/model.js').default) });
app.model({ namespace: 'model', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/contract/model.js').default) });
app.model({ namespace: 'model', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/zhongcai/model.js').default) });
app.model({ namespace: 'muniuren', ...(require('/Users/huangyanyang/Work/exercise/dva/yangniula-umi/app/assets/src/pages/muniuren/models/muniuren.js').default) });
